<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>大数据计算</title>
<meta name="keywords" content="">
<meta name="description" content="">

<link href="css/hadmin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="css/hadmin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="css/hadmin/css/animate.css" rel="stylesheet">
<link href="css/hadmin/css/style.css?v=4.1.0" rel="stylesheet">
<style type="text/css">
#BigData {
	text-align: center;
}

#div1 {
	padding-top: 50px;
}
#aaa{
	display: inline-block;
	width: 100%;
}
</style>
</head>

<body class="gray-bg">
		<form id="form1" name="form1" action="ShowSchool.action" method="post">
	<div>
		<div class="col-md-12">
			<div class="form-group">
				<div id="div1"></div>
				<div class="col-sm-9">
					<input type="text" id="score"  class="form-control"
						placeholder="请输入你的成绩"  onkeyup="value=value.replace(/[^\d]/g,'')" name="score">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">文科理科:</label>
				<div class="col-sm-9">
					<select name="property">
						<option value="1">文科</option>
						<option value="2">理科</option>
					</select>		
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-6">
			<div class="ibox float-e-margins">
				<div class="ibox-content">
					<div class="panel-body">
						<div class="panel-group" id="accordion">
							<div class="ibox-title">
								<h5>选择专业</h5>
							</div>
								<c:forEach items="${list }" var="Major">
							<div class="panel panel-default">
								<div class="panel-heading">
									<h5 class="panel-title">
										<label> <input type="checkbox" id="cCode" value="${Major.cCode }" name="cCode">${Major.cName }</label>
									</h5>
								</div>
							</div>
						</c:forEach>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	<div id="BigData">
		<button type="submit" class="btn btn-w-m btn-info" id="btn">大数据精准分析</button>
	</div>
	</form>
	<!-- 全局js -->
	<script src="js/hadmin/js/jquery.min.js?v=2.1.4"></script>
	<script src="js/hadmin/js/bootstrap.min.js?v=3.3.6"></script>
	<!-- 自定义js -->
	<script src="js/hadmin/js/content.js?v=1.0.0"></script>
	
	<script type="text/javascript">
	$("#form1").submit(function(){
		var score = $("#score").val();
		if(score===null||score===""){
			alert("请输入你的成绩");
	        return false;
		}else if(score>=1000){
		alert("请输入一个有效的成绩");
	        return false;
		
		}
		
		var len = $("#cCode").length;
		if($("input[type='checkbox']:checked").length<3){
			alert("请至少选择3个专业类别");
	        return false;
		}
		return true;
	
});

</script>
</body>
</html>

